new Vue({
  el: '#app',
  data: {
    active: 3,
    user: {},
    randGoods: {}
  },
   mounted () {
    this.main()
  },
  methods: {
    main() {
      $http.post('/shop/api.goods/rand_goods', {}).then(res => this.randGoods = res.data)
    },
    toggleGoods() {
      $http.post('/shop/api.goods/rand_goods', {}).then(res => this.randGoods = res.data)
    },
  }
})